<template>
  <div :id="props.id"></div>
</template>
<script setup lang="ts">
import QRCode from 'qrcodejs2-fix'
import { onMounted } from 'vue'
const props = defineProps({
  id: {
    type: String,
    default: 'qrcode'
  },
  option: Object
})

onMounted(() => {
  new QRCode(document.getElementById(props.id), props.option)
})
</script>
